/***
 * Brian Hession -- February 15, 2013
 * 
 * Animation
 *
 * Changelog
 * Date				Changes
 * 2/15/2013		Initial version
 *
 */

#ifndef ANIMATION_H
#define ANIMATION_H

#include <SDL/SDL.h>

class Animation {
	public:
		Animation();
		Animation( SDL_Rect* images, int length = 1, 
				int numClips = 1, int duration = 0 );
		void setImages( SDL_Rect* images );
		void setNumClips(int);
		void setLength(int);
		void setDuration(int);
		void setClip(int);
		void setTimestamp(int);
		int getNumClips();
		int getLength();
		int getDuration();
		int getClip();
		SDL_Rect* getImage();
		int getTimestamp();
		void step();
		void reset();
	private:
		int clip,numClips,length,frame,timestamp,duration;
		SDL_Rect* images;
};

#endif

